/* Reset Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Root Variables for Easy Theming */
:root {
    --primary-color: #007BFF;
    --secondary-color: #6C757D;
    --background-color: #F8F9FA;
    --text-color: #343A40;
    --font-family: 'Montserrat', sans-serif;
}

/* Body Styles */
body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

/* Header Section */
header {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.header-top {
    display: flex;
    align-items: center;
    /* Aligns items vertically in the center */
    justify-content: space-between;
    /* Distributes space evenly between items */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo,
.iitr-logo {
    width: 120px;
    /* Adjust logo sizes */
    cursor: pointer;
}

.lab-name {
    font-size: 3em;
    cursor: pointer;
    color: #fff;
    flex-grow: 1;
    /* Allows the lab name to take up extra space in the center */
    text-align: center;
}

.header-full-form {
    font-size: 2em;
    color: #ddd;
    margin-top: 10px;
}

/* Navigation Menu */
/* General Navigation Styles */
/* Sticky Navigation Bar */
/* Sticky Navigation Bar */
.sticky-nav {
    position: sticky;
    top: 0;
    background-color: #333;
    padding: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.sticky-logo {
    width: 180px;
    height: auto;
    display: none;
    /* Initially hidden */
    position: absolute;
    left: 200px;
    /* Aligns the logo to the left */
    transition: opacity 0.3s ease;
}


.sticky-nav .nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
    justify-content: center;
    /* Keep menu options centered */
    flex-grow: 1;
}

.sticky-nav .nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.sticky-nav .nav-links a:hover {
    color: #007bff;
}

/* Mobile Navigation */
.menu-icon {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #fff;
    position: absolute;
    right: 20px;
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.nav-links {
    transition: none;
    /* Avoid animations on smaller screens */
}

/* Fix sticky logo on smaller laptop screens */
@media (max-width: 1600px) {

    /* Target smaller laptop screens */
    .sticky-logo {
        display: none !important;
        /* Hide sticky logo on smaller screens */
    }
}

@media (max-width: 768px) {
    .sticky-logo {
        display: none !important;
        /* Hide sticky logo on smaller screens */
    }

    .menu-icon {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: -200px;
        height: 100%;
        width: 200px;
        background-color: #333;
        flex-direction: column;
        align-items: center;
        padding-top: 60px;
        box-shadow: -4px 0 6px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        transition: right 0.3s ease;
    }

    .nav-links.show {
        right: 0;
    }

    .nav-overlay.show {
        display: block;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        color: #fff;
        font-size: 1.2em;
    }


}





/* Slideshow Section */
.slideshow-container {
    position: relative;
    max-width: 1000px;
    /* Adjust to desired width */
    height: 550px;
    /* Adjust to desired height */
    margin: 25px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.slideshow {
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image fills container while maintaining aspect ratio */
}

.slide.active {
    display: block;
}

/* Navigation Buttons */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    transition: background-color 0.3s;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 123, 255, 0.7);
    color: #fff;
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}


/* Research Team Section */
.research-team {
    padding: 30px 20px;
    /* Reduced padding */
    background-color: #f9f9f9;
}

.research-team h2 {
    text-align: center;
    margin-bottom: 25px;
    /* Reduced margin below title */
    font-size: 1.8em;
    /* Slightly reduced font size */
    color: var(--primary-color);
}

/* Professor Profile */
.professor-profile {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto 20px auto;
    /* Centered and margin below */
    padding: 20px;
    text-align: center;
    max-width: 600px;
    /* Limit width for better readability */
    transition: transform 0.3s, box-shadow 0.3s;
}

.professor-profile:hover {
    transform: scale(1.02);
    /* Subtle scale on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.professor-profile img {
    width: 120px;
    /* Consistent image size */
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.professor-profile h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.professor-profile p {
    color: #555;
    font-size: 1em;
    margin-bottom: 15px;
}

.research-team .social-icons {
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.research-team .social-icons a {
    display: inline-block;
}

.research-team .icon {
    width: 18px;
    /* Further reduced size for better proportion */
    height: 18px;
    transition: transform 0.3s;
}

.research-team .icon:hover {
    transform: scale(1.2);
}

/* Team Members */
.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    /* Reduced gap between team members */
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 10px;
    padding: 15px;
    text-align: center;
    flex: 1 1 calc(25% - 40px);
    max-width: 300px;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.team-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.team-member h3 {
    margin-bottom: 8px;
    color: var(--primary-color);
    margin: 10px 0;
    font-size: 1.2em;
}



.team-member .social-icons {
    display: flex;
    justify-content: center;
    gap: 8px;
    /* Reduced gap between icons */
    margin-top: 8px;
    /* Reduced top margin */
}

.team-member .social-icons a {
    display: inline-block;
}

.team-member .icon {
    width: 18px;
    /* Further reduced size for better proportion */
    height: 18px;
    transition: transform 0.3s;
}

.team-member .icon:hover {
    transform: scale(1.2);
}


/* Button Style */
.button {

    margin-top: 20px;
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {

    background-color: #0056b3;
}

/* Former Students Section */
#former-students {
    padding: 30px 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
    margin-top: 20px;
}

#former-students h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8em;
    color: var(--primary-color);
}

.former-student-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.former-student {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    flex: 1 1 calc(50% - 40px);
    /* Larger width */
    max-width: 500px;
    /* Max width for larger boxes */
    transition: transform 0.3s, box-shadow 0.3s;
}

.former-student:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.former-student img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.student-details h3 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin: 10px 0;
}

.student-details p {
    font-size: 0.9em;
    color: #555;
    margin: 5px 0;
    text-align: left;
    /* Ensure text aligns left */
}


.former-student .social-icons {
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.former-student .social-icons a {
    display: inline-block;
}

.former-student .icon {
    width: 20px;
    /* Further reduced size for better proportion */
    height: 20px;
    transition: transform 0.3s;
}

.former-student .icon:hover {
    transform: scale(1.2);
}

/* Postdoctoral Staff Heading */
.postdoc-heading {
    text-align: center;
    font-size: 1.2em;
    /* Smaller font size */
    color: #555;
    margin-top: 20px;
    margin-bottom: 20px;
}



/* Projects Section */
.projects {
    padding: 30px 20px;
    /* Reduced padding */
    background-color: var(--background-color);
}

.projects h2 {
    text-align: center;
    margin-bottom: 25px;
    /* Reduced margin below title */
    font-size: 1.8em;
    /* Slightly reduced font size */
    color: var(--primary-color);
}

.project-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    /* Reduced gap between projects */
    max-width: 1200px;
    margin: 0 auto;
}

.project-item {
    background-color: #fff;
    padding: 15px;
    /* Reduced padding */
    border-radius: 10px;
    width: 260px;
    /* Adjusted width */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project-item h3 {
    margin-bottom: 8px;
    /* Reduced margin below project titles */
    color: var(--primary-color);
}

.project-item p {
    color: var(--text-color);
    font-size: 0.95em;
    /* Slightly reduced font size */
}



/* Button */
.button {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 10px;
    color: #fff;
    background-color: #007bff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #0056b3;
}


/* Publications Section */
/* Publications Section */
.publication-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.publication-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    transition: all 0.3s ease;
}

.publication-item {
    width: 250px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 10px;
    height: 320px;
    /* Set initial height */
    position: relative;
}

/* Style for the image */
.publication-item img {
    width: 100%;
    height: 150px;
    /* Fixed height for images */
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

/* Style for the publication title */
.publication-title {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 5;
    /* Standard property for line clamping */

    font-weight: bold;
    color: #007bff;
    margin: 10px 0;
    padding: 0 10px;
    white-space: normal;
    transition: all 0.3s ease;
}

/* Remove underlining from links */
.publication-item a {
    text-decoration: none;
    color: inherit;
}

/* Hover effect to expand all items in the row */
.publication-row:hover .publication-item {
    height: 360px;
    /* Set max height for expansion on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: scale(1.02);
    /* Slightly scales up the item */
}

.publication-row:hover .publication-title {
    display: -webkit-box;
    -webkit-line-clamp: unset;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: unset;
    /* Standard property for line clamping */

    overflow: visible;
}


/* Notification Section */
.notifications {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.notifications h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #007bff;
}

.notification-container {
    height: 300px;
    /* Fixed height for scrolling area */
    overflow: hidden;
    position: relative;
}

.notification-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    animation: scroll-up 15s linear infinite;
    /* Continuous scroll */
}

/* Flexbox for consistent alignment */
.notification-item {
    font-size: 1em;
    color: #000;
    padding: 15px 0;
    text-align: left;
    padding-left: 15px;
    white-space: normal;
    transition: transform 0.3s ease, font-size 0.3s ease, color 0.3s ease;

    display: flex;
    /* Flex layout */
    align-items: center;
    /* Align icon and text vertically */
    gap: 8px;
    /* Space between icon and text */
}

/* Hover effect */
.notification-item:hover {
    font-size: 1.1em;
    color: #007bff;
}

.notification-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    /* Ensure icon and text align properly */
    align-items: center;
    gap: 8px;
    /* Space between icon and text */
}

.notification-item a:hover {
    text-decoration: none;
    color: #007bff;
}

/* Style for the NEW icon */
.new-icon {
    width: 30px;
    /* Adjust size */
    height: auto;
    vertical-align: middle;
    /* Align with text */
    animation: fadeIn 1s ease-in-out infinite alternate;
    /* Optional simple animation */
}

/* Placeholder to maintain alignment when the icon is absent */
.icon-placeholder {
    width: 30px;
    /* SAME width as the NEW icon */
    height: 30px;
    /* Match the icon’s height for perfect alignment */
    visibility: hidden;
    /* Invisible but retains space */
}

/* Optional: Smooth fade-in animation for the NEW icon */
@keyframes fadeIn {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}



/* Keyframe animation for continuous scrolling effect */
@keyframes scroll-up {
    0% {
        transform: translateY(100%);
    }

    5% {
        transform: translateY(80%);
    }

    /* Faster initial speed */
    100% {
        transform: translateY(-100%);
    }
}



/* Gallery Section */
.gallery {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.gallery h2 {
    font-size: 1.8em;
    margin-top: 25px;
    margin-bottom: 20px;
    color: #007bff;
}

.gallery-group {
    margin-bottom: 2rem;
}

.gallery-group h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
}

.gallery-images {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;

}

.gallery-item {
    position: relative;
    width: 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-item a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Scale image on hover */
.gallery-item:hover a img {
    transform: scale(1.05);
    /* Adjust zoom level as needed */
}

/* Additional Styling for index.html's Main Gallery */
.main-gallery .gallery-item {
    width: 250px;
    /* Smaller size for index.html */
    height: 250px;
}

/* Styling for Full Gallery in gallery.html */
.full-gallery .gallery-item {
    width: 280px;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.full-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    /* object-fit: contain; */
    /* Ensure the entire image is visible within the container */
    transition: transform 0.3s ease;
}

/* Optional: Add hover effect if desired */
.full-gallery .gallery-item:hover img {
    transform: scale(1.05);
}


/* Popup Styling */
.popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Dark overlay */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1em;
    opacity: 0;
    /* Initially hidden */
    transition: opacity 0.3s ease;
    padding: 10px;
    border-radius: 8px;
}

/* Show the popup on hover */
.gallery-item:hover .popup {
    opacity: 1;
    /* Show overlay on hover */
}




.gallery-link {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    width: 100%;
    /* Adjust this as needed */
    height: 100%;
    /* Adjust this as needed */
}

.more-text {
    color: #007bff;
    /* This makes the text blue */
    font-size: 1.2em;
    /* Adjust the font size as needed */
    align-self: center;
}

/* Display Window Style */
.display-window {
    position: relative;
    width: 700px;
    height: 500px;
    margin: 20px auto;
    text-align: center;
    background-color: #f1f1f1;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.display-window img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Description Styling */
.image-description {
    width: 100%;
    /* Full width */
    height: 50px;
    /* Fixed height to avoid layout shifts */
    max-height: 50px;
    overflow: hidden;
    font-size: 1.2em;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    /* Optional padding for spacing */
    background-color: #0000;
    /* Background color for visibility */
    border-radius: 8px;
    margin-top: 10px;
}



.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
}

.left-btn {
    left: 10px;
}

.right-btn {
    right: 10px;
}



/* Footer Section */
.footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

/* Lab Logo and Tagline */
.footer-logo {
    text-decoration: none;
    /* Remove the underline */
    color: #fff;
    /* Inherit the text color from the parent */
    display: inline-block;
    /* display: flex; */
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 200px;
}

.footer-logo a:hover {
    text-decoration: none;
    /* Ensure no underline on hover */
    color: #fff;
    /* Maintain the original color on hover */
}

.lab-logo {
    width: 80px;
    margin-bottom: 10px;
}

.lab-tagline h3 {
    font-size: 1.2em;
    margin: 0;
}

.lab-tagline p {
    font-size: 0.9em;
    color: #ccc;
}

/* Quick Links */
.footer-links {
    text-align: left;
}

.footer-links h4 {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #ddd;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 5px;
}

.footer-links a {
    color: #fff;
    /* Default color white */
    text-decoration: none;
}

.footer-links a:hover {
    color: #007bff;
    /* Change to blue on hover */
}

/* Contact Information */
.footer-contact h4 {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #ddd;
}

.footer-contact p {
    margin: 5px 0;
    font-size: 0.9em;
    color: #ccc;
}

.footer-contact a {
    color: #007bff;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

/* Smooth Scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}



/* Responsive Styles */
@media (max-width: 768px) {
    .research-team .professor-profile {
        max-width: 90%;
        /* Adjusted for smaller screens */
    }

    .team-container,
    .project-container {
        flex-direction: column;
        align-items: center;
    }

    .team-member,
    .professor-profile,
    .project-item {
        width: 90%;
    }

    .gallery-images {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 8px;
        /* Further reduced gap */
    }
}



/* Mobile Responsive Adjustments for Slideshow */
@media (max-width: 768px) {

    .slideshow-container {
        max-width: 100%;
        /* Utilize full screen width */
        height: 200px;
        /* Fixed height for slideshow */
        margin: 10px auto;
        /* Reduce margins */
        border-radius: 0;
        /* Remove rounded corners for edge-to-edge display */
        box-shadow: none;
        /* Remove shadow for a cleaner look */
        overflow: hidden;
        /* Hide overflow to maintain fixed height */
        display: flex;
        align-items: center;
        /* Center images vertically */
        justify-content: center;
        /* Center images horizontally */
    }

    .slideshow {
        display: flex;
        /* Display images in a row */
        width: 100%;
        height: 100%;
        /* Match container height */
        align-items: center;
        /* Center images vertically */
        justify-content: center;
        /* Center images horizontally */
    }

    .slide {
        display: none;
        width: 100%;
        height: 100%;
        /* Fixed height to match container */
        object-fit: cover;
        /* Compress and adjust images to fill the container */
    }

    .slide.active {
        display: block;
    }

    /* Adjust navigation buttons for mobile */
    .prev,
    .next {
        top: 45%;
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        padding: 8px;
        font-size: 14px;
    }

    .prev {
        left: 5px;
    }

    .next {
        right: 5px;
    }

    /* Footer Logo Adjustments for Mobile View */
    .footer-logo {
        text-decoration: none;
        /* Remove the underline */
        color: #fff;
        display: inline-block;
        /* display: flex; */
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-width: 150px;
        /* Reduced max-width for better fit */
    }

    .lab-logo {
        width: 50px;
        /* Smaller logo size for mobile */
        margin-bottom: 8px;
        /* Slightly reduced margin */
    }

    .lab-tagline h3 {
        font-size: 1em;
        /* Adjusted font size */
        margin: 0;
    }

    .lab-tagline p {
        font-size: 0.8em;
        /* Reduced font size for better readability */
        color: #ccc;
    }

    .footer-contact h4 {
        font-size: 1em;
        margin-bottom: 1px;
        color: #ddd;
    }

    .footer-contact p {
        margin: 3px 0;
        font-size: 0.85em;
        color: #ccc;
    }

    .footer-links h4 {
        font-size: 1em;
        margin-bottom: 4px;
        color: #ddd;
    }

    .footer-links li {
        margin-bottom: 5px;
        font-size: 0.85em;
    }

    /* Display Window Adjustments for Mobile View */
    .display-window {
        width: 90%;
        /* Use most of the screen width */
        height: 250px;
        /* Fixed height for display window */
        margin: 10px auto;
        /* Adjust margins */
        padding: 5px;
        /* Adjust padding */
        border-radius: 5px;
        /* Smaller border radius */
    }

    .display-window img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        /* Ensure the image fits without cropping */
        border-radius: 5px;
        /* Match border radius */
    }

    .image-description {
        font-size: 0.85em;
        /* Adjust font size */
        padding: 2px;
        /* Reduce padding */
        height: 20px;
        /* Adjust height */
        max-height: 40px;
        margin-top: 5px;
        /* Adjust margin */
    }

    .nav-btn {
        top: 50%;
        background-color: rgba(0, 0, 0, 0.6);
        padding: 6px;
        /* Reduce button padding */
        font-size: 18px;
        /* Adjust button font size */
    }

    .left-btn {
        left: 5px;
        /* Adjust button position */
    }

    .right-btn {
        right: 5px;
        /* Adjust button position */
    }


    .gallery h2 {
        font-size: 1.2em;
        margin-top: 1px;
        margin-bottom: 2px;
        color: #007bff;
    }

    .gallery-group h3 {
        font-size: 1rem;
        color: #333;
        margin-bottom: 1rem;
        border-bottom: 2px solid #ddd;
        padding-bottom: 0.5rem;
    }

    /* Styling for Full Gallery in gallery.html */
    .full-gallery .gallery-item {
        width: 250px;
        height: 220px;
        overflow: hidden;
        border-radius: 9px;
        cursor: pointer;
    }

    /* Header Adjustments for Mobile View */
    header {
        padding: 10px 0;
        /* Reduce header padding */
    }


    .header-top {
        display: flex;
        justify-content: center;
        /* Center content horizontally */
        align-items: center;
        /* Center items vertically */
        gap: 10px;
        /* Space between logo and text */
    }

    .logo,
    .iitr-logo {
        width: 50px;
        /* Adjust logo size for mobile */
        height: auto;
    }

    .lab-name {
        font-size: 1.5em;
        /* Adjust font size for mobile */
        margin: 0 10px;
        /* Add spacing around the text */
        color: #fff;
        /* Ensure good contrast */
    }

    .header-full-form {
        font-size: 0.8em;
        /* Smaller font for the tagline */
        text-align: center;
        /* Center-align the tagline */
        padding: 5px 10px;
        /* Add padding for spacing */
    }

}

/* Mobile View Adjustments */
@media (max-width: 768px) {
    .publication-row {
        flex-direction: column;
        /* Stack items vertically */
        align-items: center;
        /* Center align items */
    }

    .publication-item {
        width: 70%;
        /* Make publication items wider for better readability */
        height: auto;
        /* Adjust height automatically */
    }

    .publication-item img {
        height: auto;
        /* Adjust image height automatically */
        object-fit: contain;
        /* Ensure full image visibility */
    }
}